{ "cells": [ { "cell_type": "markdown", "metadata": { "_kg_hide-input": true }, "source": [ "# 1. **Imports** " ] }, { "cell_type": "code", "execution_count": 2, "metadata": { "_kg_hide-input": true, "execution": { "iopub.execute_input": "2022-06-29T00:53:51.475464Z", "iopub.status.busy": "2022-06-29T00:53:51.474970Z", "iopub.status.idle": "2022-06-29T00:54:20.380605Z", "shell.execute_reply": "2022-06-29T00:54:20.379631Z", "shell.execute_reply.started": "2022-06-29T00:53:51.475376Z" } }, "outputs": [], "source": [ "import numpy as np # linear algebra\n", "import pandas as pd # data processing, CSV file I/O (e.g. pd.read_csv)\n", "import plotly.express as px # Plot graphics\n", "import plotly.io as pio " ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "# 2. Reading the data" ] }, { "cell_type": "code", "execution_count": 3, "metadata": { "execution": { "iopub.execute_input": "2022-06-29T00:54:20.383462Z", "iopub.status.busy": "2022-06-29T00:54:20.382914Z", "iopub.status.idle": "2022-06-29T00:54:20.401241Z", "shell.execute_reply": "2022-06-29T00:54:20.400285Z", "shell.execute_reply.started": "2022-06-29T00:54:20.383414Z" } }, "outputs": [], "source": [ "df = pd.read_csv('./data/StudentsPerformance.csv')" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## 2.1 First glances on the dataset" ] }, { "cell_type": "code", "execution_count": 4, "metadata": { "execution": { "iopub.execute_input": "2022-06-29T00:54:20.403686Z", "iopub.status.busy": "2022-06-29T00:54:20.403052Z", "iopub.status.idle": "2022-06-29T00:54:20.445012Z", "shell.execute_reply": "2022-06-29T00:54:20.444226Z", "shell.execute_reply.started": "2022-06-29T00:54:20.403641Z" } }, "outputs": [ { "data": { "text/html": [ "
| \n", " | gender | \n", "race/ethnicity | \n", "parental level of education | \n", "lunch | \n", "test preparation course | \n", "math score | \n", "reading score | \n", "writing score | \n", "
|---|---|---|---|---|---|---|---|---|
| 0 | \n", "female | \n", "group B | \n", "bachelor's degree | \n", "standard | \n", "none | \n", "72 | \n", "72 | \n", "74 | \n", "
| 1 | \n", "female | \n", "group C | \n", "some college | \n", "standard | \n", "completed | \n", "69 | \n", "90 | \n", "88 | \n", "
| 2 | \n", "female | \n", "group B | \n", "master's degree | \n", "standard | \n", "none | \n", "90 | \n", "95 | \n", "93 | \n", "
| 3 | \n", "male | \n", "group A | \n", "associate's degree | \n", "free/reduced | \n", "none | \n", "47 | \n", "57 | \n", "44 | \n", "
| 4 | \n", "male | \n", "group C | \n", "some college | \n", "standard | \n", "none | \n", "76 | \n", "78 | \n", "75 | \n", "